HCL
Skip to main content  
 
   


SPRTechnote


NotesUIWorkspace Class's CurrentDocument Property is not Set in a Subform's Initialize and QueryOpen Event

Technote Number: 1106808


Problem:
This issue was reported to Lotus Software Quality Engineering and was addressed
in Notes 6.0.2 CF1.

Excerpt from the Lotus Notes and Domino fix list
(http://www.lotus.com/ldd/r5fixlist.nsf):

SPR# GFLY5JPRNW
Fixed a problem in which was introduced in 6.0 where a handle was not possible
to NotesUIWorkspace.CurrentDocument if it was located in the Initialize Event
of a Subform.

As a workaround for versions prior to 6.0.2, place the desired code in the
QueryOpen event and make use of the NotesUIDocument handle provided in the
Source variable.

For example the below code within the QueryOpen event would work without error:

Dim uidoc As NotesUIDocument
Set uidoc = source
If uidoc.IsNewDoc Then
Messagebox("New Document")
Else
Messagebox("Existing Document")
End If
More >





  Document options
Print this document
Print view

  Search
Search Advanced Search


  Fix list views

 RSS feeds   RSS
Subscribe to the fix list

  Resources
Using this database
View notices

  HCL Support
HCL Support


    About HCL Privacy Contact